* lisp/progmodes/python.el: Fix up last change.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 4 Nov 2013 19:14:58 +0000 (14:14 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 4 Nov 2013 19:14:58 +0000 (14:14 -0500)
commit9a33840b2870ab85546c8f47213a1f41bb83c68d
tree878cc3cf8b0cb982222f115a769b02fea3553388
parent57ae6509a3b6a274f89b9caea0284c6156470625
* lisp/progmodes/python.el: Fix up last change.
(python-shell--save-temp-file): New function.
(python-shell-send-string): Use it.  Remove `msg' arg.  Don't assume
`string' comes from the current buffer.
(python-shell-send-string-no-output): Remove `msg' arg.
(python--use-fake-loc): New var.
(python-shell-buffer-substring): Obey it.  Try to compensate for the
extra coding line added by python-shell--save-temp-file.
(python-shell-send-region): Use python-shell--save-temp-file and
python-shell-send-file directly.  Add `nomain' argument.
(python-shell-send-buffer): Use python-shell-send-region.
(python-electric-pair-string-delimiter): New function.
(python-mode): Use it.
lisp/ChangeLog
lisp/progmodes/python.el